/**
 * @USER: Administrator
 * @DATE: 2024/9/20 下午7:22
 * @VERSION: 1.0.0
 */
public class LC1287 {
    public static void main(String[] args) {

    }

    public int findSpecialInteger(int[] arr) {
        int count = 0;
        int current = arr[0];
        for (int j : arr) {
            if (j == current) {
                count++;
            } else {
                count = 1;
                current = j;
            }

            if (count > arr.length * 0.25) {
                return j;
            }
        }

        return 0;
    }

}
